package com.beimihu.GetAFData.domain;

import lombok.Data;

/**
 * @auther beimihu
 * @date 2024/1/31
 * @description
 */

@Data
public class ReportData {

    private int id;
    //    private String attributedTouchType; //0 Attributed Touch Type
//    private String attributedTouchTime; //1 Attributed Touch Time（记录到的广告触达时间）
//    private String installTime; //2 Install Time （激活时间）
    private String eventTime; //3 Event Time （事件时间）
    private String eventName; //4 Event Name （事件时间）
    //    private String eventValue; //5 Event Value （事件值）
    private String eventRevenue; //6 Event Revenue （事件收入）
    //    private String eventRevenueCurrency; //7 Event Revenue Currency （事件收入货币）
//    private String eventRevenueUSD; //8 Event Revenue USD （以美元为单位的事件收入）
    private String eventSource; //9 Event Source （事件来源）
    //    private String isReceiptValidated; //10 Is Receipt Validated（收入验证）
//    private String partner; //11 Partner
    private String mediaSource; //12 Media Source
    private String channel; //13 Channel
    //    private String keywords; //14 Keywords
    private String campaign; //15 Campaign
    //    private String campaignID; //16 Campaign ID
//    private String adset; //17 Adset
//    private String adsetID; //18 Adset ID
    private String ad; //19 Ad
    private String adID; //20 Ad ID （广告Id）
    private String adType; //21 Ad Type （广告类型）
    //    private String siteID; //22 Site ID
//    private String subSiteID; //23 Sub Site ID
//    private String subParam1; //24 Sub Param 1（可配置参数1）
//    private String subParam2; //25 Sub Param 2 同上
//    private String subParam3; //26 Sub Param 3
//    private String subParam4; //27 Sub Param 4
//    private String subParam5; //28 Sub Param 5
//    private String costModel; //29 Cost Model（计费模式）
    private String costValue; //30 Cost Value（成本值）
    //    private String costCurrency; //31 Cost Currency（成本货币）
//    private String contributor1Partner; //32 Contributor 1 Partner（助攻1 代理）
//    private String contributor1MediaSource; //33 Contributor 1 Media Source（助攻1 广告平台）
//    private String contributor1Campaign; //34 Contributor 1 Campaign（助攻1 广告系列）
//    private String contributor1TouchType; //35 Contributor 1 Touch Type（助攻1 触点类型）
//    private String contributor1TouchTime; //36 Contributor 1 Touch Time（助攻1 触达时间）
//    private String contributor2Partner; //37 Contributor 2 Partner（助攻2 代理)同上
//    private String contributor2MediaSource; //38 Contributor 2 Media Source
//    private String contributor2Campaign; //39 Contributor 2 Campaign
//    private String contributor2TouchType; //40 Contributor 2 Touch Type
//    private String contributor2TouchTime; //41 Contributor 2 Touch Time
//    private String contributor3Partner; //42 Contributor 3 Partner
//    private String contributor3MediaSource; //43 Contributor 3 Media Source
//    private String contributor3Campaign; //44 Contributor 3 Campaign
//    private String contributor3TouchType; //45 Contributor 3 Touch Type
//    private String contributor3TouchTime; //46 Contributor 3 Touch Time
//    private String region; //47 Region （地区）
    private String countryCode; //48 Country Code（国家代码）
    //    private String state; //49 State（州）
//    private String city; //50 City（城市）
//    private String postalCode; //51 Postal Code（邮政编码）
//    private String dma; //52 DMA（指定市场区域）
//    private String ip; //53 IP
//    private String wifi; //54 WIFI
//    private String operator; //55 Operator（手机运营商）
//    private String carrier; //56 Carrier（移动运营商）
//    private String language; //57 Language（语言）
//    private String appsFlyerID; //58 AppsFlyer ID
    private String advertisingID; //59 Advertising ID
    //    private String idfa; //60 IDFA
    private String androidID; //61 Android ID
    private String customerUserID; //62 Customer User ID（客户用户ID）
    //    private String imei; //63 IMEI
//    private String idfv; //64 IDFV
//    private String platform; //65 Platform（系统平台）
//    private String deviceType; //66 Device Type（设备型号）
//    private String os_version; //67 OS Version（OS版本）
//    private String appVersion; //68 App Version（应用版本）
//    private String sdkVersion; //69 SDK Version（SDK版本）
    private String appID; //70 App ID
    private String appName; //71 App Name（应用名称）
//    private String bundleID; //72 Bundle ID
//    private String isRetargeting; //73 Is Retargeting（是否为再营销广告）
//    private String retargetingConversionType; //74 Retargeting Conversion Type（是否为再营销广告）
//    private String attributionLookback; //75 Attribution Lookback（是否为再营销广告）
//    private String reengagementWindow; //76 Reengagement Window（是否为再营销广告）
//    private String isPrimaryAttribution; //77 Is Primary Attribution（是否为主要转化来源）
//    private String userAgent; //78 User Agent
//    private String http_referrer; //79 HTTP Referrer（HTTP来源标识）
//    private String originalUrl; //80 Original URL



    public ReportData(String[] datasource, String appId, String appName) {
        mediaSource = datasource[3];
        costValue = datasource[14];
        campaign = datasource[4];
        countryCode = datasource[1];
        eventTime = datasource[0];
        this.appID = appId;
        this.appName = appName;
    }

    public ReportData(String[] datasource) {
        eventTime = datasource[3];
        eventName = datasource[4];
        eventRevenue = datasource[6];
        eventSource = datasource[9];
        mediaSource = datasource[12];
        channel = datasource[13];
        ad = datasource[19];
        adID = datasource[20];
        adType = datasource[21];
        costValue = datasource[30];
        androidID = datasource[61];
        customerUserID = datasource[62];
        appID = datasource[70];
        appName = datasource[71];
        advertisingID = datasource[59];
        campaign = datasource[15];
        countryCode = datasource[48];
    }




}
